[#escape x as x?html]
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>目录编辑</title>
    [#include "/include/main.ftl"]
    [#include "/include/popdialog.ftl"]

</head>
<body>
[#if obj.saved??]
    <script>closeDialog('ok')</script>
[#else]
<form name="mainForm" method="post" action="/nxl/manager/saveDir">
    <INPUT TYPE="hidden" NAME="sn" VALUE="${obj.nxldirObj.sn?default('')}">
    <INPUT TYPE="hidden" NAME="parentDir" VALUE="${obj.nxldirObj.parentDir?default('')}">

    <div id="nxldir_base">
        <p>
            目录名称 
              <input type="text" size="20" id="name" name="name" class="max-length-40 ">

            <script>$("#name").val("${(obj.nxldirObj.name)?default('')}");</script>

        </p>
        <p>目录链接至<select id="ctype" name="ctype">
  <option value="dir" selected>子目录</option>
  <option value="link">链接</option>

</select> 

<script>$("#ctype").val("${(obj.nxldirObj.ctype)!''}");</script>        </p>
        <p>链接地址<input  id="content" name="content" type="text">
        <script>$("#content").val("${(obj.nxldirObj.content)!''}");</script>  
        </p>
        <p>显示顺序
          <input type="text" size="20" id="dispOrder" name="dispOrder" class="validate-number ">
          
          <script>$("#dispOrder").val("${(obj.nxldirObj.dispOrder)?default('')}");</script>
      </p>
        <p>
            <input type="submit" name="button" id="button" value="保存">
        </p>


    </div>
</form>
[/#if]

</body>
</html>
[/#escape]
